package Job04.Teacher;

import Job04.Person.Person;

public class Teacher extends Person {
    private double work;

    public double getWork() {
        return work;
    }
    public void setWork(double work) {
        this.work = work;
    }

    public Teacher(int id, String name, String job, double work) {
        super(id, name, job);
        this.work = work;
    }

    public Teacher() {
    }

    @Override
    public void talk() {
        System.out.println("老师:姓名-" +this.getName()+ "  职位-" +this.getJob()+ "  工资-" +this.getWork());
    }
}
